<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .box{
            display: flex;
            /*flex-direction: row;*/
            /* justify-content 控制flex item在主轴上面的排布方式*/
            /*justify-content: ;*/

            /*justify-content: center;*/

            /*最左和最右的元素先贴边，然后剩余空间均分*/
            /*justify-content: space-between;*/

            /*flex item 左右两侧的距离一致*/
            /*justify-content: space-around;*/

            /*左侧和右侧的间距一致*/
            /*justify-content: space-evenly;*/

            /*flex-start主轴的起点*/
            /*justify-content: flex-start;*/

            /* flex-end 主轴的终点 */
            /*justify-content: flex-end;*/

            width: 500px;
            height: 500px;
            border: 1px solid red;
        }

        .box1{
            width: 100px;
            height: 100px;
            background-color: #f00;
        }

        .box2{
            width: 100px;
            height: 100px;
            background-color: #0f0;
        }

        .box3{
            width: 100px;
            height: 100px;
            background-color: #00f;
        }


    </style>
</head>
<body>
    <div class="box">
        <div class="box1"></div>
        <div class="box2"></div>
        <div class="box3"></div>
    </div>
    文本
</body>
<script type="text/javascript">

</script>

</html>
